using System;
using System.Collections.Generic;
using System.Text;
using Sio.Mdm.Types;
using Castle.DynamicProxy;
using Castle.Core.Interceptor;

namespace Sio.Mdm.Server
{
    /// <summary>
    /// Error returned when there has been invocation error when invoking
    /// service implementation.
    /// </summary>
    [Serializable]
    public class ServiceInvocationError : Result
    {
        public ServiceInvocationError(IInvocation invocation, Exception ex)
            : base(String.Format("{0}", invocation.Method.Name), ex)
        {
        }
    }
}
